<style>
    .wallet-warning {
        text-align: center;
        font-size: 30px;
        margin: 20% 20px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    {if $wallet}
    <input type="hidden" name="uid" value="{$uid}">
    {foreach name="wallet" item="wa"}
    <div class="form-group">
        <label for="c-freeze" class="control-label col-xs-12 col-sm-2">{$wa.coin_name}{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-balance" data-rule="required" class="form-control" name="balance_{$wa.coin_id}" type="number" value="{$wa.balance}">
            {if $wa['address']}<p>系统地址：{$wa.address}</p>{/if}
        </div>
    </div>
    <div class="form-group">
        <label for="c-freeze" class="control-label col-xs-12 col-sm-2">{$wa.coin_name}{:__('Freeze')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-freeze" data-rule="required" class="form-control" name="freeze_{$wa.coin_id}" type="number" value="{$wa.freeze}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="coin_id_{$wa.coin_id}" value="{$wa.coin_id}"/>
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/foreach}
    {else}
    <div class="form-group">
        <div class="wallet-warning">
            该会员没有钱包信息
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">为该会员创建钱包</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}
</form>
